package shiyefactory;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 刘国水
 * Date: 2025-03-30
 * Time: 15:30
 */
public class test {
    public static void main(String[] args) {
        UserFactory adminFactory = new AdminFactory();
        User admin = adminFactory.createUser("刘少",18);

        UserFactory normalFactory = new NormalFactory();
        User normal1 =  normalFactory.createUser("卡头",21);
        User normal2 = normalFactory.createUser("小蔡",19);

    }
}
